Repository navigation
Conversation
Contributor
Author
|
This PR cannot create a child window because it fails arround here. I should consider the xinput2. Please wait. |
t-sin
force-pushed
the
with-parent-in-x11
branch
from
December 15, 2021 00:55
2e04778 to
20b8cfd
Compare
Contributor
Author
|
Some problem when this PR created are resolved. It's ready for review. |
t-sin
force-pushed
the
with-parent-in-x11
branch
from
February 11, 2022 15:12
20b8cfd to
ff1f0f9
Compare
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR can create windows with a user-specified parent window. It's intended to realize what discussed in issue #159 for X11.
EDITED:
For compatibility, this introduces a new methodnew_x11_any_thread_with_root()to create such windows. I considered to change the signature ofnew_x11_any_thread(), it takes a parent window ID, but I cannot decide that so simply create a new method. I want to discuss about this point.The way above was an wrong way. For now this PR adds
with_x11_parent()method toWindowBuilderby importingwinit::platform::unix::WindowBuilderExtUnix, we can set X11 window ID as a parent with it. It seems good because it's similar way in supporting child window in Windows (#96).By the way this PR is for my VST3 plugin using vst3-sys so I don't have any ideas to test this PR without VST3 codes. I want some advice about testing.This PR adds example code and it works.cargo fmthas been run on this branchcargo docbuilds successfullyCHANGELOG.mdif knowledge of this change could be valuable to users